/**
 * Created by luqidong on 2018/1/30.
 */
import axios from 'axios';
import {NEWS_URI} from '../../utils/common'
export function getsharenew(token, page) {
    if(token) {
        return axios.get(`${NEWS_URI}/discovery/share/all?page=${page}&pageSize=20`, {
            headers: {
                token
            }
        });
    }
    return axios.get(`${NEWS_URI}/discovery/share/all?page=${page}&pageSize=20`);
}
export function getsharejh(token, page) {
    if(token) {
        return axios.get(`${NEWS_URI}/discovery/share/jh?page=${page}&pageSize=20`, {
            headers: {
                token
            }
        });
    }
    return axios.get(`${NEWS_URI}/discovery/share/jh?page=${page}&pageSize=20`);
}